﻿using System;
using System.Web;

namespace Nydus.WebForms.FrontendModel
{
    public class DefaultPresenterFactory : BasePresenterFactory
    {
        public override object GetPresenter(HttpContextBase httpContextBase, BasePage page)
        {
            Type presenterType = GetPresenterType(page);

            return Activator.CreateInstance(presenterType, page, httpContextBase);
        }
    }
}
